widget-factory: Don't use Return as accel
authorMatthias Clasen <mclasen@redhat.com>
Sat, 8 Jun 2019 13:46:38 +0000 (13:46 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Jun 2019 17:38:54 +0000 (17:38 +0000)
This is a bad idea, as it interacts badly with
general use of Return for activation.

demos/widget-factory/widget-factory.c
demos/widget-factory/widget-factory.ui

index fb1ac6f153f5f113b33349e47476ef9007d3e5c0..7faffdbd0893fc176af07251ffa721daa5290b24 100644 (file)
@@ -1668,7 +1668,6 @@ activate (GApplication *app)
   } accels[] = {
     { "app.about", { "F1", NULL } },
     { "app.quit", { "<Primary>q", NULL } },
-    { "app.open", { "Return", NULL } },
     { "app.open-in", { "<Primary>n", NULL } },
     { "app.cut", { "<Primary>x", NULL } },
     { "app.copy", { "<Primary>c", NULL } },
index 7fb854ad914d90c1aa981521bb9a635f7f6e8596..2c7e6bc0b306f9b9d4564a263d2bd9bf57f47f8b 100644 (file)
@@ -3834,7 +3834,7 @@ bad things might happen.</property>
     <section>
       <item>
         <attribute name="label" translatable="yes">Open</attribute>
-        <attribute name="action">app.open</attribute>
+        <attribute name="action">win.open</attribute>
       </item>
     </section>
     <section>